import turtle
x, y, m = int(input()), int(input()), int(input())
h = 10 * m

coord_x = [x, x + h, x + h, x + 2 * h, x + 2 * h, x + h, x + h, x, x]
coord_y = [-y, -y, -(y + h), -(y + h), -(y + 2 * h), -(y + 2 * h), -(y + 3 * h), -(y + 3 * h), -y]
flag = False

for i in range(0,9):
    if coord_x[i] > 500 or coord_y[i] < -500:
        flag = True
        break

if flag:
    print('Размер фигуры превышает максимальный размер поля')
else:
    turtle.screensize(1000,1000)
    turtle.goto(0,0)
    turtle.pencolor('black')
    turtle.begin_fill()
    for i in range(4):
        turtle.forward(500)
        turtle.right(90)

    turtle.penup()
    turtle.fillcolor('black')
    turtle.begin_fill()
    turtle.goto(coord_x[0],coord_y[0])
    turtle.pendown()
    for i in range(1,9):
        turtle.goto(coord_x[i],coord_y[i])
    turtle.end_fill()
    turtle.mainloop()

